package com.ktg.mes.chanjet.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@Data
@TableName("tp_item")
public class TpItem extends BaseEntity {

    @TableId(value = "item_id", type = IdType.AUTO)
    private Long itemId;
    private String itemCode;
    private String itemName;
    private String specification;
    private String unitOfMeasure;
    private String itemOrProduct;
    private Long itemTypeId;
    private String itemTypeCode;
    private String itemTypeName;
    private String enableFlag;
    private String safeStockFlag;
    private Double minStock;
    private Double maxStock;
    private String attr1;
    private String attr2;
    private String attr3;
    private String attr4;

    private String mesType;

    private String mesTypeName;

    /** 有效期(月) */
    private Integer validTerm;
    /** 净重 */
    private String netWeight;
    /** 标识 */
    private String identification;
    /** 油墨类型 */
    private String inkType;
    /** 标准 */
    private String standard;

    /** 批号 */
    @TableField(exist = false)
    private String BatchNo;

    /** 生产日期 */
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;
    /** 有效日期 */
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validTime;

    /**名称*/
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String currencyName;

    /**存货代码*/
    @Excel(name = "存货代码", width = 15)
    @ApiModelProperty(value = "存货代码")
    private String invAddCode;

    /**粘度*/
    @Excel(name = "粘度", width = 15)
    @ApiModelProperty(value = "粘度")
    private String viscosity;

    /**标签*/
    @Excel(name = "标签", width = 15)
    @ApiModelProperty(value = "标签")
    private String tag;

    /**包装规格*/
    @Excel(name = "包装规格", width = 15)
    @ApiModelProperty(value = "包装规格")
    private String packingType;

    /**税率*/
    @Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    private String taxRate;

    /**箱包装规格*/
    @Excel(name = "箱包装规格", width = 15)
    @ApiModelProperty(value = "箱包装规格")
    private String invBoxStd;

    /**安全资料*/
    @Excel(name = "安全资料", width = 15)
    @ApiModelProperty(value = "安全资料")
    private String safetyFile;
    /**第三方报告*/
    @Excel(name = "第三方报告", width = 15)
    @ApiModelProperty(value = "第三方报告")
    private String thirdReport;
    /**存货图片*/
    @Excel(name = "存货图片", width = 15)
    @ApiModelProperty(value = "存货图片")
    private String invImages;

    @Excel(name = "本来作为工艺分类，后面陆续修改，作为产品统计名称，按同一个产品进行统计")
    private String processProductName;

    @Excel(name = "本来作为工艺分类，后面陆续修改，作为产品统计ID，按同一个产品进行统计")
    private Long processProductId;


    /** 计量单位编码 */
    private String measureNo;

    @Excel(name = "外观")
    private String appearance;
}
